package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PersonnelAreaRequest {

    @JsonProperty(value = "comId")
    @NotNull(message = "comId 不能为空")
    private Long comId;

    @JsonProperty(value = "areaNo")
    @NotNull(message = "areaNo 不能为空")
    private Integer areaNo;

    @JsonProperty(value = "deptIds")
    private String deptIds;

    @JsonProperty(value = "pName")
    private String pName;

    @JsonProperty(value = "pCode")
    private String pCode;

    @JsonProperty(value = "access")
    private Integer access;

    @JsonProperty(value = "page")
    private Integer page;

    @JsonProperty(value = "size")
    private Integer size;

    @JsonProperty(value = "subDept")
    private Boolean subDept=false;

    @JsonProperty(value = "deptId")
    private Integer deptId=0;

    @JsonProperty(value = "pId")
    private String pId;

    @JsonProperty(value = "groupNo")
    private Integer groupNo;
}
